package com.sc.nft.exception;

import com.sc.nft.sup.ErrorCode;
import lombok.Data;

@Data
public class ModelException extends RuntimeException {

    private Object data;

    private ErrorCode errorCode;

    public ModelException(Object data, ErrorCode errorCode) {
        this.data = data;
        this.errorCode = errorCode;
    }

    public ModelException(Object data) {
        this.data = data;
    }

    public ModelException(ErrorCode errorCode) {
        this.errorCode = errorCode;
    }

}
